package com.augurit.common.base.schedule;

import org.springframework.beans.factory.annotation.Autowired;

import com.augurit.common.base.email.SimpleMailService;

/**
 * 测试定时发送邮件的示例.
 */
public class SendMailJobDemo extends JdkExecutorJob {

	@Autowired
	SimpleMailService simpleMailService;
	
	@Override
	public void run() {

		System.out.println("========== 定时发送邮件（用于测试定时服务和邮件服务） ==========");
			
		simpleMailService.sendNotificationMail("chenweiguang01@qq.com", "chenweiguang01@qq.com", "测试", "测试内容");
			
		System.out.println("=======================================================");

	}
}
